//后台管理系统的cookie
export const admin_auth_cookie_key = 'emper_admin_fuck_token'

export function getCookie(ctxOrVue, key) {
  return ctxOrVue.$cookie.get(key)
}

export function setCookie(ctxOrVue, key, value, expires) {
  return ctxOrVue.$cookie.set(admin_auth_cookie_key, value, {
    path: '/',
    expires: expires
  })
}

export function deleteCookie(ctxOrVue, key) {
  return ctxOrVue.$cookie.delete(key, {path: '/'})
}